package com.ict.web.controller.yzq;


import com.ict.web.domain.SystemInfo;
import com.ict.web.service.ISystemInfoService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.ict.common.annotation.Log;
import com.ict.common.core.controller.BaseController;
import com.ict.common.core.domain.AjaxResult;
import com.ict.common.enums.BusinessType;

import java.util.List;


/**
 * 系统信息Controller
 * 
 * @author ruoyi
 * @date 2022-03-07
 */
@Api(tags = "系统信息")
@RestController
@RequestMapping("/system/info")
public class SystemInfoController extends BaseController
{
    @Autowired
    private ISystemInfoService systemInfoService;

    /**
     * 新增系统信息
     */
    @ApiOperation("新增系统信息")
    @Log(title = "系统信息", businessType = BusinessType.INSERT)
    @PostMapping("/addSave")
    public AjaxResult add(Long programmeId,@RequestBody List<SystemInfo> addDtoS)
    {
        systemInfoService.insertSystemInfo(programmeId,addDtoS);
        return AjaxResult.success();
    }

}
